os-init: don't create /var/log/journal on deploy
authorCosimo Cecchi <cosimo@endlessm.com>
Tue, 22 Apr 2014 22:36:03 +0000 (15:36 -0700)
committerColin Walters <walters@verbum.org>
Fri, 25 Apr 2014 20:47:02 +0000 (16:47 -0400)
Leave the policy of whether to persistently store journal logs to the
system integrator when the default journald configuration is in use.

https://bugzilla.gnome.org/show_bug.cgi?id=728762

src/ostree/ot-admin-builtin-os-init.c

index 38c2187e6d88252c46de026e8176586077cff359..19ed4a1c526f3c2da0843cbcca22c49866887bf9 100644 (file)
@@ -62,15 +62,9 @@ ot_admin_builtin_os_init (int argc, char **argv, OstreeSysroot *sysroot, GCancel
   deploy_dir = ot_gfile_get_child_build_path (ostree_sysroot_get_path (sysroot), "ostree", "deploy", osname, NULL);
 
   /* Ensure core subdirectories of /var exist, since we need them for
-   * dracut generation, and the host will want them too.  Note that at
-   * the moment we pre-create /var/log/journal to cater to systemd.
+   * dracut generation, and the host will want them too.
    */
   g_clear_object (&dir);
-  dir = ot_gfile_get_child_build_path (deploy_dir, "var", "log", "journal", NULL);
-  if (!gs_file_ensure_directory (dir, TRUE, cancellable, error))
-    goto out;
-
-  g_clear_object (&dir);
   dir = ot_gfile_get_child_build_path (deploy_dir, "var", "tmp", NULL);
   if (!gs_file_ensure_directory (dir, TRUE, cancellable, error))
     goto out;